package game;

import java.awt.Color;



public class Player extends Attore {

	


	
	public Player(Amministratore amministratore, char glyph, Color color,String name, int maxHp,int hp, int attack, int defense,Arma arma) {
		super(amministratore, glyph,  color, name,  maxHp, hp,  attack,  defense, arma);

		
	}
	@Override
	public void onEnter(int x, int y, Cella cella){
		int value=0;
		if (cella.isGround()){
			this.x = x;
			this.y = y;
		} 
		else if((value=cella.Potion())>0){
			this.usePotion(x,y,value);
			this.x = x;
			this.y = y;
		}
	}
	@Override
	public void update(){
	}
	
}
